package cn.haohaowo;

import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * Created by luwancai on 18/5/31.
 * DESC:
 */
@Slf4j
@Component
public class LeaderListenter {

    @KafkaListener(topics = "stockleader")
    public void doRunJob(ConsumerRecord record) {
        log.info("Follower, send: {}", record.value());
    }

}
